import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const torqueConverterLambdaApi = {

  // 根据变距器id获取 @author wuhq
  getByTorqueConvertId: (id) => {
    return getAxios(`/torqueConverterLambda/getByTorqueConvertId/${id}`);
  },
  getById: (id) => {
    return getAxios(`/torqueConverter/getById/${id}`);
  },

    // 添加变矩器λ曲线 @author wuhq
    addTorqueConverterLambda: (data) => {
        return postAxios('/torqueConverterLambda/add', data);
    },
    // 分页查询变矩器λ曲线 @author wuhq
    queryTorqueConverterLambda: (data) => {
        return postAxios('/torqueConverterLambda/page/query', data);
    },
    // 批量删除变矩器λ曲线 @author wuhq
    batchDeleteTorqueConverterLambda: (idList) => {
        return postAxios('/torqueConverterLambda/deleteByIds', idList);
    },
    // 修改变矩器λ曲线  @author wuhq
    updateTorqueConverterLambda: (data) => {
        return postAxios('/torqueConverterLambda/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/torqueConverterLambda/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/torqueConverterLambda/export/batch', idList);
    },
};
